package com.tsingtree.modular.enums;

import lombok.Getter;

import java.util.Map;
import java.util.TreeMap;

@Getter
public enum SceneTypeEnum {

    SHAKE(0, "模式1"),
    EXPAND(1, "模式2"),
    SUCK(2, "模式3"),
    OTHER(3, "附加"),
    ALL(4, "模式4"),
    ;

    private final int key;

    private final String desc;

    SceneTypeEnum(int key) {
        this.key = key;
        this.desc = "";
    }

    SceneTypeEnum(int key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public static Map<Integer, String> getAll() {
        Map<Integer, String> map = new TreeMap<>();
        for (SceneTypeEnum loanInterestEnum : SceneTypeEnum.values()) {
            map.put(loanInterestEnum.getKey(), loanInterestEnum.getDesc());
        }
        return map;
    }

}
